#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

#define MaxSubWindowNum 1000

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_actionOpen_triggered();

    void on_actionClose_triggered();

    void on_actionMID_toggled(bool arg1);

    void on_actionLine_triggered();

    void on_actionTile_triggered();

    void on_actionWindow_triggered();

    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

    void onActionTriggered(bool checked);

private:
    Ui::MainWindow *ui;
    int subwindowNum = 0;
    QDialog *subWindow[MaxSubWindowNum] = {NULL};

    void CreatSubWindow(int Num);
};
#endif // MAINWINDOW_H
